package com.gws.ievent.service.job;

import com.gws.ievent.common.utils.DateTimeUtil;
import com.gws.ievent.scheduler.Scheduler;
import com.gws.ievent.scheduler.IJob;

/**
 * @author song
 * @date 2022/10/20 22:07
 */
public class PrintJob implements IJob {

    private final String text;

    public PrintJob(String text) {
        this.text = text;
    }

    /**
     * 执行方法
     *
     * @return
     */
    @Override
    public void run(Scheduler event) {
        System.out.println("PrintJobImpl " + DateTimeUtil.now() + " " + this.text);
    }
}
